﻿<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/Master_Page/Master_IPORT.Master"
    CodeBehind="SHIP_LD_PERFORMANCE_CONTROL.aspx.vb" Inherits="I_PORT.SHIP_LD_PERFORMANCE_CONTROL"
    title="IRPC INTELLIGENT PORT SERVICE" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Src="~/Control/Confirm.ascx" TagName="Confirm1" TagPrefix="Confirm" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script type="text/javascript" language="javascript">
                        var _source;
    // keep track of the popup div
    var _popup;

    function showConfirm(customerid) {
        this._source = customerid;
        this._popup = $find('ModalPopupExtender3'); 
        this._popup.show();  
    }
       function okClick(){
        //  find the confirm ModalPopup and hide it
       this._popup.hide();

        __doPostBack(this._source.name,'');
        
    }
        function cancelClick(){
        //  find the confirm ModalPopup and hide it
        this._popup.hide();
    }
                function closeModal(type) {
           // document.getElementById('ctl00_contentplaceholder1_framePopup').src = 'about:blank';
            if (type == '@')
            {
            var mpu = $find('ctl00_ContentPlaceHolder1_ModalPopupExtender5');
            mpu.hide();
            document.getElementById('ctl00_contentplaceholder1_btnReLoad').click();
            }
        }
                        function closeModalReject(type) {
           // document.getElementById('ctl00_contentplaceholder1_framePopup').src = 'about:blank';
        if (type == 'V')
            {
            var mpu = $find('ctl00_ContentPlaceHolder1_ModalPopupExtender7');
            mpu.hide();
            document.getElementById('ctl00_contentplaceholder1_btnRejectOK').click();
            }
            else
            {
            var mpu = $find('ctl00_ContentPlaceHolder1_ModalPopupExtender7');
            mpu.hide();
            }
           
        }
         function closeModalPopupTug(type){
                document.getElementById('ctl00_contentplaceholder1_EditTug').src = '../FormPopup/TugBeforeAndAfter.aspx';
            var mpu = $find('ctl00_ContentPlaceHolder1_ModalPopupExtender1');
            
    if (type == 'S'){
            document.getElementById('ctl00_contentplaceholder1_btnTugLoad').click();
     }
              mpu.hide();
    }
        function closeModalPopup(type){
            var mpu = $find('ctl00_ContentPlaceHolder1_ModalPopupExtender4');
            
    if (type == 'S'){
            document.getElementById('ctl00_contentplaceholder1_btnDelayLoad').click();
     }
              mpu.hide();
          }

          function clickButton(e, buttonid) {

              var evt = e ? e : window.event;
              var bt = document.getElementById(buttonid);
              if (bt) {
                  if (evt.keyCode == 13) {
                      bt.click();
                      return false;
                  }
              }
          }
 function checkNumber(e)
{
var keycode;

if (window.event) keycode = window.event.keyCode; // ใช้ IE อ่ะ

else if (e) keycode = e.which; // ใช้ Firefox เน่าะ

 if (((keycode > 47) && (keycode < 58))||(keycode == 190)||(keycode == 46))
 {
 return true;
 }
return false;
}
    </script>
        <style type="text/css">
    td.locked, th.locked {
position:relative;    
left:expression((this.parentElement.parentElement.parentElement.parentElement.scrollLeft-2)+'px');
}   
</style>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td>
                        <asp:Panel ID="PanelBookingItem" runat="server">
                            <table width="100%" border="0" cellpadding="2" cellspacing="0">
                                <tr>
                                    <td style="height: 5px;">
                                        <img src="../Image/space.gif" />
                                    </td>
                                </tr>
                                   <tr>
                <td colspan="2" align="center" >
                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                   <tr>
                       <td valign="top">
                          <table width="100%" border="0" cellpadding="2" cellspacing="0">
                             <tr>
                                <td align="right" style="width:100px;"><asp:Label ID="label115" runat="server" SkinID="lbtxt" Text="Booking No. :" ></asp:Label>&nbsp;</td>
                                <td align="left">
                                    <asp:TextBox ID="txtBookingVPS" runat="server" ></asp:TextBox>
                                </td>
                             </tr>
                              <tr>
                                <td align="right" style="width:100px;"><asp:Label ID="label72" runat="server" SkinID="lbtxt" Text="Product :" ></asp:Label>&nbsp;</td>
                                <td align="left">
                                    <asp:TextBox ID="txtProductSearch" runat="server" Width="80%" ></asp:TextBox>
                                </td>
                             </tr>
                             <tr>
                                <td align="right" style="width:100px;"><asp:Label ID="label67" runat="server" SkinID="lbtxt" Text="Product L/D :" ></asp:Label>&nbsp;</td>
                                <td align="left">
                                    <asp:DropDownList ID="ddlProductLD" runat="server" SkinID="ddl" >
                                       <asp:ListItem Value="A">All</asp:ListItem>
                                       <asp:ListItem Value="L">Load</asp:ListItem>
                                       <asp:ListItem Value="D">Disch</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                             </tr>
                             <tr>
                                <td align="right" style="width:100px;"><asp:Label ID="label68" runat="server" SkinID="lbtxt" Text="Destination :" ></asp:Label>&nbsp;</td>
                                <td align="left">
                                    <asp:DropDownList ID="ddlDestinationSearch" runat="server" SkinID="ddl" >
                                       <asp:ListItem Value="A">All</asp:ListItem>
                                       <asp:ListItem Value="I">Domestic</asp:ListItem>
                                       <asp:ListItem Value="O">Foreign</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                             </tr>
                             <tr>
                                <td align="right" style="width:100px;">&nbsp;</td>
                                <td align="left">
                                    <asp:Button ID="btnSearchVPS" runat="server" Text="ค้นหา" CssClass="ButtonStyle" />
                                </td>
                             </tr>
                          </table>
                       </td>
                       <td valign="top">
                       <table width="100%" border="0" cellpadding="2" cellspacing="0">
                             <tr>
                                <td align="right" style="width:100px;"><asp:Label ID="label116" runat="server" SkinID="lbtxt" Text="Ship's Name :" ></asp:Label>&nbsp;</td>
                                <td align="left">
                                    <asp:TextBox ID="txtShipVPS" runat="server" Width="80%" ></asp:TextBox>
                                </td>
                             </tr>
                             <tr>
                          <td style="width:100px;" align="right"><asp:Label ID="label69" runat="server" Text="*" ForeColor="Red" ></asp:Label><asp:Label ID="Label70" runat="server" SkinID="lbtxt" Text="Lay Can :"></asp:Label>&nbsp;</td>
                         <td align="left"><asp:TextBox ID="txtDateSearch" runat="server" Width="60px" onkeypress="return false;" ></asp:TextBox>&nbsp;<asp:ImageButton ID="ImgDateSearch" runat="server" ImageUrl="~/Image/calendar.png" />&nbsp;<asp:Label ID="Label71" runat="server" SkinID="lbtxt" Text="TO"></asp:Label>&nbsp;<asp:TextBox ID="txtDateToSearch" runat="server" Width="60px"  onkeypress="return false;" ></asp:TextBox>&nbsp;<asp:ImageButton ID="ImgDateToSearch" runat="server"  ImageUrl="~/Image/calendar.png" />
                                <asp:CalendarExtender ID="CalendarExtenderSearch5" runat="server" TargetControlID="txtDateSearch" Format="dd MMM yyyy" PopupButtonID="ImgDateSearch"></asp:CalendarExtender>
                                <asp:CalendarExtender ID="CalendarExtenderSearch6" runat="server" TargetControlID="txtDateToSearch" Format="dd MMM yyyy" PopupButtonID="ImgDateToSearch" ></asp:CalendarExtender>
                              </td>
                           </tr>
                             <tr>
                                <td align="right" style="width:100px;"><asp:Label ID="label117" runat="server" SkinID="lbtxt" Text="Status :" ></asp:Label>&nbsp;</td>
                                <td align="left">
                                    <asp:DropDownList ID="ddlStatusVPS" runat="server" SkinID="ddl" >
                                       <asp:ListItem Value="A">On Processing</asp:ListItem>
                                       <asp:ListItem Value="L">Waiting For PTOL</asp:ListItem>
                                       <asp:ListItem Value="U">Waiting For PTOLSUP</asp:ListItem>
                                       <asp:ListItem Value="S">Waiting For PTOLSEC</asp:ListItem>
                                       <asp:ListItem Value="T">Waiting For PTMM Approve</asp:ListItem>
                                       <asp:ListItem Value="J">Close Job</asp:ListItem>
                                       <asp:ListItem Value="C">Cancel</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                             </tr>
                              <tr>
                                <td align="right" style="width:100px;"><asp:Label ID="label66" runat="server" SkinID="lbtxt" Text="Plan Berth :" ></asp:Label>&nbsp;</td>
                                <td align="left">
                                  <asp:TextBox ID="txtPlanBerthFrom" runat="server" Width="80px" onkeypress="return false;" ></asp:TextBox>&nbsp;<asp:ImageButton ID="ImgPlanBerthFrom" runat="server" ImageUrl="~/Image/calendar.png" />&nbsp;-&nbsp;<asp:TextBox ID="txtPlanBerthTo" runat="server" Width="80px" onkeypress="return false;" ></asp:TextBox>&nbsp;<asp:ImageButton ID="ImgPlanBerthTo" runat="server" ImageUrl="~/Image/calendar.png" />
                                <asp:CalendarExtender ID="CalendarExtender4" runat="server" TargetControlID="txtPlanBerthFrom" Format="dd MMM yyyy" PopupButtonID="ImgPlanBerthFrom"></asp:CalendarExtender>
                                <asp:CalendarExtender ID="CalendarExtenderSerachPlan" runat="server" TargetControlID="txtPlanBerthTo" Format="dd MMM yyyy" PopupButtonID="ImgPlanBerthTo"></asp:CalendarExtender>
                                </td>
                             </tr>
                          </table>
                       </td>
                   </tr>
                </table>
                </td>
              </tr>
                                <tr>
                                    <td colspan="2" align="right">
                                         <table width="100%" border="0" cellpadding="0" cellspacing="0" >
                        <tr>
                          <td>&nbsp</td>
                          <td style="width:24px;"><img src="../Image/red.png" /></td>
                          <td style="width:90px;" align="left">&nbsp<asp:Label ID="Label34" runat="server" SkinID="lbtxt" Text="WAITING VERIFIED"></asp:Label></td>
                          <td style="width:24px;"><img src="../Image/green.png" /></td>
                          <td style="width:60px;" align="left">&nbsp<asp:Label ID="Label31" runat="server" SkinID="lbtxt" Text="RELEASED"></asp:Label></td>
                          <td style="width:24px;"><img src="../Image/comment.png" /></td>
                          <td style="width:90px;" align="left">&nbsp<asp:Label ID="Label32" runat="server" SkinID="lbtxt" Text="COMMENT"></asp:Label></td>
                          <td style="background-color:#A0CFEC;width:24px;">&nbsp;</td>
                          <td style="width:140px;" align="left">&nbsp<asp:Label ID="lb" runat="server" SkinID="lbtxt" Text="LOAD TO DOMESTIC"></asp:Label></td>
                          <td style="background-color:#6698FF;width:24px;">&nbsp;</td>
                          <td style="width:140px;" align="left">&nbsp<asp:Label ID="Label33" runat="server" SkinID="lbtxt" Text="LOAD TO FOREIGN"></asp:Label></td>
                          <td style="background-color:#52D017;width:24px;">&nbsp;</td>
                          <td style="width:140px;" align="left">&nbsp<asp:Label ID="Label34e" runat="server" SkinID="lbtxt" Text="DISCH FROM DOMESTIC"></asp:Label></td>
                          <td style="background-color:#347C17;width:24px;">&nbsp;</td>
                          <td style="width:140px;" align="left">&nbsp<asp:Label ID="Label39" runat="server" SkinID="lbtxt" Text="DISCH FROM FOREIGN"></asp:Label></td>
                          <td style="background-color:#FF0000;width:24px;">&nbsp;</td>
                          <td style="width:140px;" align="left">&nbsp<asp:Label ID="Label42" runat="server" SkinID="lbtxt" Text="CANCEL BOOKING"></asp:Label></td>
                        </tr>
                    </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="height: 5px;">
                                        <img src="../Image/space.gif" />
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2" align="center">
                                        <asp:Panel ID="panelGridItem" runat="server" Width="900px" ScrollBars="Horizontal">
                                                              <asp:GridView ID="gridItem" runat="server" SkinID="gridblue" DataKeyNames="Status,Booking_Code,Booking_name,Vehicle_no,Vehicle_Text,Booking_no,Date_From,Date_To,MAgent_no,MAgent_name,SAgent_no,SAgent_name,MKT_Product,MKT_Custom,MKT_Finance,Booking_Date,Booking_Time,VPS_approve,MRI_approve,Marketing_approve,Vps_Acknowledge,MKT_Acknowledge,Remark_VPS,Remark_MRI,Vehicle_Destination,Vehicle_TypeBuy,Demurrage,Demurrage_Money,BunkerFO_Point,BunkerDO_Point,PORT,Confirm_Time,File_Upload,SELLER,BUYER,Product_Unit,Payin"
                                                AutoGenerateColumns="False">
                                                <PagerTemplate>
                                                    <table>
                                                        <tr>
                                                            <td>
                                                                <asp:ImageButton ID="ImgFirst" runat="server" Height="22px" ImageUrl="../Image/arrow-first.gif"
                                                                    OnCommand="Paginate" CommandArgument="First" CommandName="Page" />
                                                            </td>
                                                            <td>
                                                                <asp:ImageButton ID="ImgBack" runat="server" Height="22px" ImageUrl="../Image/arrow-back.gif"
                                                                    OnCommand="Paginate" CommandArgument="Prev" CommandName="Page" />
                                                            </td>
                                                            <td valign="top">
                                                                Page
                                                                <asp:DropDownList ID="ddlPage" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlPage_SelectedIndexChanged">
                                                                </asp:DropDownList>
                                                                of
                                                                <asp:Label ID="lbPageCount" runat="server" Text="Label"></asp:Label>
                                                            </td>
                                                            <td>
                                                                <asp:ImageButton ID="ImgNext" runat="server" Height="22px" ImageUrl="../Image/arrow-next.gif"
                                                                    OnCommand="Paginate" CommandArgument="Next" CommandName="Page" />
                                                            </td>
                                                            <td>
                                                                <asp:ImageButton ID="ImgEnd" runat="server" Height="22px" ImageUrl="../Image/arrow-end.gif"
                                                                    OnCommand="Paginate" CommandArgument="Last" CommandName="Page" />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </PagerTemplate>
                                                <Columns>
                                                    <asp:TemplateField HeaderText="BOOKING NO." ItemStyle-Wrap="false"  ItemStyle-CssClass="locked">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="LinkBooking" runat="server" Text="<%# Bind('Booking_no') %>"
                                                                CommandArgument="<%# Container.DataItemIndex %>" CommandName="Edit"></asp:LinkButton>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:BoundField HeaderText="Vessel NAME" DataField="Vehicle_Text" ItemStyle-Wrap="false" ItemStyle-CssClass="locked" />
                                                    <asp:BoundField HeaderText="Status" ItemStyle-Wrap="false" />
                                                     <asp:TemplateField HeaderText="Approve" ItemStyle-Width="40px">
                                                        <ItemTemplate>
                                                            <asp:Image ID="imgApprove" runat="server" />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:BoundField HeaderText="LAY CAN/LAY DAY" DataField="Date_To" ItemStyle-Wrap="false" />
                                                    <asp:BoundField HeaderText="วันเวลา/จองเข้า" DataField="Lay_Time" ItemStyle-Wrap="false" />
                                                    <asp:BoundField HeaderText="LAY TIME" DataField="Lay_Time" ItemStyle-Wrap="false" />
                                                    <asp:BoundField HeaderText="เอกสารรายละเอียด" DataField="File_Upload" ItemStyle-Wrap="false" />
                                                    <asp:BoundField HeaderText="COMMODITY" DataField="Product_Name" ItemStyle-Wrap="false" />
                                                    <asp:BoundField HeaderText="QUANTITY" DataField="Product_Amount" ItemStyle-Wrap="false" />
                                                    <asp:BoundField HeaderText="UNIT" DataField="Product_Unit" ItemStyle-Wrap="false" />
                                                    <asp:BoundField HeaderText="BUYER" DataField="BUYER" ItemStyle-Wrap="false" />
                                                    <asp:BoundField HeaderText="SALLER" DataField="SELLER" ItemStyle-Wrap="false" />
                                                    <asp:BoundField HeaderText="Status" DataField="Status_Text" Visible="false" />
                                                    <asp:TemplateField HeaderText="Product" ItemStyle-Width="40px">
                                                        <ItemTemplate>
                                                            <asp:Image ID="imgProduct" runat="server" />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Custom" ItemStyle-Width="40px">
                                                        <ItemTemplate>
                                                            <asp:Image ID="imgCustom" runat="server" />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Finace" ItemStyle-Width="40px">
                                                        <ItemTemplate>
                                                            <asp:Image ID="imgFinance" runat="server" />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:BoundField HeaderText="DEMURRAGE" DataField="Lay_Time" />
                                                    <asp:BoundField HeaderText="TERM" DataField="Lay_Time" />
                                                    <asp:TemplateField HeaderText="VPS" ItemStyle-Width="40px">
                                                        <ItemTemplate>
                                                            <asp:Image ID="imgVPS" runat="server" /><asp:Image ID="imgVPSComment" runat="server"
                                                                ImageUrl="~/Image/comment.png" />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="MRI" ItemStyle-Width="40px">
                                                        <ItemTemplate>
                                                            <asp:Image ID="imgMRI" runat="server" /><asp:Image ID="imgMRIComment" runat="server"
                                                                ImageUrl="~/Image/comment.png" />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="MKT" ItemStyle-Width="40px">
                                                        <ItemTemplate>
                                                            <asp:Image ID="imgMKT" runat="server" />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:BoundField HeaderText="AGENT" DataField="MAgent_name" />
                                                    <asp:BoundField HeaderText="เทียบท่า" DataField="Wharf" />
                                                    <asp:BoundField HeaderText="วันเทียบ" DataField="Date_Wharf" />
                                                    <asp:BoundField HeaderText="เวลาเทียบ" DataField="TimeStart" />
                                                    <asp:BoundField HeaderText="เวลาเทียบ" DataField="Date_WharfEnd" />
                                                    <asp:BoundField HeaderText="เวลาเทียบ" DataField="TimeEnd" />
                                                    <asp:TemplateField HeaderText="Confirm" ItemStyle-Width="40px">
                                                        <ItemTemplate>
                                                            <asp:Image ID="imgConfrim" runat="server" />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:BoundField HeaderText="REMAIN LAYTIME" />
                                                    <asp:BoundField HeaderText="REMARK" DataField="RemarkWharf" />
                                                    <asp:TemplateField HeaderText="" ItemStyle-Width="105px">
                                                        <ItemTemplate>
                                                            <asp:Button ID="btnDetail" runat="server" Text="Detail" CssClass="ButtonStyle" CommandArgument="<%# Container.DataItemIndex %>"
                                                                CommandName="Detail"  />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                            </asp:GridView>
                                            <asp:Timer ID="Timer1" Interval="300000" runat="server">
                                            </asp:Timer>
                                        </asp:Panel>
                                        <asp:Label ID="lbAlert" runat="server" Text="" Font-Names="Tahoma" Style="color: Red;
                                            font-size: 16px;"></asp:Label>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                        
                        <asp:Panel ID="PanelShipLoading" runat="server" Visible="false">
                        <asp:TabContainer ID="TabShip" runat="server"  Width="100%" 
               AutoPostBack="true"  ActiveTabIndex="0" >
                    <asp:TabPanel  ID="TabPerformance" runat="server"  HeaderText="SHIP PERFORMANCE CONTROL">
                    <HeaderTemplate>SHIP PERFORMANCE CONTROL
                    </HeaderTemplate>
                    <ContentTemplate>
                            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td colspan="2">
                                        <table width="100%" border="0" cellpadding="2" cellspacing="0">
                                            <tr>
                                                <td colspan="4" align="right" valign="top">
                                                    <asp:Label ID="Label76" runat="server" SkinID="lbtxt" Text="SHIP LOADDING/UNLOADING PERFORMANCE CONTROL"></asp:Label>&nbsp;
                                                </td>
                                                <td style="width: 15%;" align="right" valign="top">
                                                    <asp:Label ID="Label80" runat="server" SkinID="lbtxt" Text="No."></asp:Label>&nbsp;
                                                </td>
                                                <td align="left">
                                                    <asp:Label ID="lbNo" runat="server" SkinID="lbtxt"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                               <td colspan="6" style="height:5px;" ><img src="../Image/space.gif" /></td>
                                            </tr>
                                            <tr>
                                                <td style="width: 15%;" align="right" valign="top">
                                                    <asp:Label ID="Label114" runat="server" SkinID="lbtxt" Text="Booking no. :"></asp:Label>&nbsp;
                                                </td>
                                                <td align="left" colspan="5" style="width: 25%;">
                                                    <asp:Label ID="lbBooking_no" runat="server" SkinID="lbtxt"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 15%;" align="right" valign="top">
                                                    <asp:Label ID="Label1" runat="server" SkinID="lbtxt" Text="Vessel :"></asp:Label>&nbsp;
                                                </td>
                                                <td align="left" style="width: 25%;">
                                                    <asp:Label ID="lbVessel" runat="server" SkinID="lbtxt"></asp:Label>
                                                </td>
                                                <td style="width: 15%;" align="right" valign="top">
                                                    <asp:Label ID="Label2" runat="server" SkinID="lbtxt" Text="Direction :"></asp:Label>&nbsp;
                                                </td>
                                                <td align="left" style="width: 15%;">
                                                    <asp:Label ID="lbDirection" runat="server" SkinID="lbtxt"></asp:Label>
                                                </td>
                                                <td style="width: 15%;" align="right" valign="top">
                                                    <asp:Label ID="Label3" runat="server" SkinID="lbtxt" Text="Wharf :"></asp:Label>&nbsp;
                                                </td>
                                                <td align="left">
                                                    <asp:Label ID="lbWharf" runat="server" SkinID="lbtxt"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 15%;" align="right" valign="top">
                                                    <asp:Label ID="Label4" runat="server" SkinID="lbtxt" Text="Product :"></asp:Label>&nbsp;
                                                </td>
                                                <td align="left" valign="top" style="width: 25%;">
                                                    <asp:Label ID="lbProduct" runat="server" SkinID="lbtxt"></asp:Label>
                                                </td>
                                                <td style="width: 15%;" align="right" valign="top">
                                                    <asp:Label ID="Label6" runat="server" SkinID="lbtxt" Text="Third party :"></asp:Label>&nbsp;
                                                </td>
                                                <td align="left" valign="top" style="width: 15%;">
                                                    <asp:TextBox ID="txtThirdParty" runat="server" Width="95%" MaxLength="200" ></asp:TextBox>
                                                </td>
                                                <td style="width: 15%;" align="right" valign="top">
                                                    <asp:Label ID="Label8" runat="server" SkinID="lbtxt" Text="Shore :"></asp:Label>&nbsp;
                                                </td>
                                                <td align="left" valign="top">
                                                    <asp:Label ID="lbShore" runat="server" SkinID="lbtxt"></asp:Label>
                                                </td>
                                            </tr>
                                             <tr id="rowShifting" runat="server" visible="false">
                                                <td style="width: 15%;" align="right" valign="top">
                                                    <asp:Label ID="lbHShifting" runat="server" SkinID="lbtxt" Text=""></asp:Label>&nbsp;
                                                </td>
                                                <td align="left" colspan="5" style="width: 25%;">
                                                    <asp:Label ID="lbShifting" runat="server" SkinID="lbtxt"></asp:Label>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2" style="height: 5px;">
                                        <img src="../Image/space.gif" />
                                    </td>
                                </tr>
                                <tr>
                                     <td style="width:500px;" align="center" valign="top">
                                        <table border="0" cellpadding="0" cellspacing="0" width="97%">
                                            <tr>
                                                <td style="width: 100%;">
                                                    <fieldset>
                                                        <table border="0" cellpadding="2" cellspacing="0" width="100%">
                                                            <tr>
                                                                <td align="center" style="border: 1px solid #FFFFFF; background-color: #2d9d1c;">
                                                                    <asp:Label ID="Label9" runat="server" SkinID="lbHead" Text="Description"></asp:Label>
                                                                </td>
                                                                <td align="center" style="border: 1px solid #FFFFFF; background-color: #2d9d1c;">
                                                                    <asp:Label ID="Label5" runat="server" SkinID="lbHead" Text="Standard Time"></asp:Label>
                                                                </td>
                                                                <td align="center" style="border: 1px solid #FFFFFF; background-color: #2d9d1c;">
                                                                    <asp:Label ID="Label7" runat="server" SkinID="lbHead" Text="Actual Time"></asp:Label>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="left" style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                    <asp:Label ID="Label10" runat="server" SkinID="lbtxt" Text="Vessel arrived"></asp:Label>
                                                                </td>
                                                                <td style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                    &nbsp;
                                                                </td>
                                                                <td align="right" style="border: 1px solid #FFFFFF; background-color: #c0e9ad;">
                                                                    <asp:Label ID="lbarrived" runat="server" SkinID="lbtxt"></asp:Label>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="left" style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                    <asp:Label ID="Label11" runat="server" SkinID="lbtxt" Text="Estimate NOR"></asp:Label>
                                                                </td>
                                                                <td style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                    &nbsp;
                                                                </td>
                                                                <td align="right" style="border: 1px solid #FFFFFF; background-color: #c0e9ad;">
                                                                    <asp:Label ID="lbNOR" runat="server" SkinID="lbtxt"></asp:Label>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="left" style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                    <asp:Label ID="Label13" runat="server" SkinID="lbtxt" Text="POB"></asp:Label>
                                                                </td>
                                                                <td style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                    &nbsp;
                                                                </td>
                                                                <td align="right" style="border: 1px solid #FFFFFF; background-color: #c0e9ad;">
                                                                    <asp:Label ID="lbPOB" runat="server" SkinID="lbtxt"></asp:Label>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="left" style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                    <asp:Label ID="Label15" runat="server" SkinID="lbtxt" Text="NOR accepted"></asp:Label>
                                                                </td>
                                                                <td style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                    &nbsp;
                                                                </td>
                                                                <td align="right" style="border: 1px solid #FFFFFF; background-color: #c0e9ad;">
                                                                    <asp:Label ID="lbAccept" runat="server" SkinID="lbtxt"></asp:Label>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="left" style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                    <asp:Label ID="Label17" runat="server" SkinID="lbtxt" Text="Firstline"></asp:Label>
                                                                </td>
                                                                <td style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                    &nbsp;
                                                                </td>
                                                                <td align="right" style="border: 1px solid #FFFFFF; background-color: #c0e9ad;">
                                                                    <asp:Label ID="lbFirstling" runat="server" SkinID="lbtxt"></asp:Label>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="left" style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                    <asp:Label ID="Label12" runat="server" SkinID="lbtxt" Text="Berthed"></asp:Label>
                                                                </td>
                                                                <td style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                    <asp:Label ID="lbBerthedStandardDate" runat="server" SkinID="lbtxt"></asp:Label>&nbsp;<asp:Label
                                                                        ID="lbBerthedStandard" runat="server" SkinID="lbtxt"></asp:Label>
                                                                </td>
                                                                <td align="right" style="border: 1px solid #FFFFFF; background-color: #c0e9ad;">
                                                                    <asp:Label ID="lbBerthedDate" runat="server" SkinID="lbtxt"></asp:Label>&nbsp;<asp:Label
                                                                        ID="lbBerthed" runat="server" SkinID="lbtxt"></asp:Label>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td colspan="3" style="height: 5px; border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                    <hr />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="left" style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                    <asp:Label ID="Label77" runat="server" SkinID="lbtxt" Text="NOR Tender"></asp:Label>
                                                                </td>
                                                                <td style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                    &nbsp;
                                                                </td>
                                                                <td align="right" style="border: 1px solid #FFFFFF; background-color: #c0e9ad;">
                                                                    <asp:TextBox ID="txtNORTender" runat="server" Width="60px" onkeypress="return false;" ></asp:TextBox>&nbsp;<asp:ImageButton ID="imgNORTender" runat="server" ImageUrl="~/Image/calendar.png" />&nbsp;<asp:TextBox ID="txtNORTenderTime" runat="server" Width="35px"></asp:TextBox>
                                                                                             <asp:CalendarExtender ID="CalendarExtender5" runat="server" 
                                                                                                 TargetControlID="txtNORTender" Format="dd/MM/yy" 
                                                                                          PopupButtonID="imgNORTender" Enabled="True"></asp:CalendarExtender>
                                                                                            <asp:MaskedEditExtender ID="MaskedEditExtender22" 
                                                                        runat="server" TargetControlID="txtNORTenderTime"
                                                                                                 Mask="99:99" MaskType="Time" 
                                                                        AcceptNegative="Left" CultureAMPMPlaceholder="" 
                                                                        CultureCurrencySymbolPlaceholder="" CultureDateFormat="" 
                                                                        CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
                                                                        CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True" ></asp:MaskedEditExtender>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="left" style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                    <asp:Label ID="Label14" runat="server" SkinID="lbtxt" Text="Concern party on board"></asp:Label>
                                                                </td>
                                                                <td style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                    &nbsp;
                                                                </td>
                                                                <td align="right" style="border: 1px solid #FFFFFF; background-color: #c0e9ad;">
                                                                    <asp:TextBox ID="txtConcern" runat="server" Width="35px"></asp:TextBox>
                                                                    <asp:MaskedEditExtender ID="MaskedEditExtender1" runat="server" TargetControlID="txtConcern"
                                                                        Mask="99:99" MaskType="Time" AcceptNegative="Left" Enabled="True" 
                                                                        CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" 
                                                                        CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
                                                                        CultureThousandsPlaceholder="" CultureTimePlaceholder="">
                                                                    </asp:MaskedEditExtender>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="left" style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                    <asp:Label ID="Label18" runat="server" SkinID="lbtxt" Text="Tank inspection before"></asp:Label>
                                                                </td>
                                                                <td style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                    &nbsp;
                                                                </td>
                                                                <td align="right" style="border: 1px solid #FFFFFF; background-color: #c0e9ad;">
                                                                    <asp:TextBox ID="txtTankFrom" runat="server" Width="35px"></asp:TextBox>&nbsp;-&nbsp;<asp:TextBox
                                                                        ID="txtTankTo" runat="server" Width="35px"></asp:TextBox>
                                                                    <asp:MaskedEditExtender ID="MaskedEditExtender2" runat="server" TargetControlID="txtTankFrom"
                                                                        Mask="99:99" MaskType="Time" AcceptNegative="Left" Enabled="True" 
                                                                        CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" 
                                                                        CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
                                                                        CultureThousandsPlaceholder="" CultureTimePlaceholder="">
                                                                    </asp:MaskedEditExtender>
                                                                    <asp:MaskedEditExtender ID="MaskedEditExtender3" runat="server" TargetControlID="txtTankTo"
                                                                        Mask="99:99" MaskType="Time" AcceptNegative="Left" Enabled="True" 
                                                                        CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" 
                                                                        CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
                                                                        CultureThousandsPlaceholder="" CultureTimePlaceholder="">
                                                                    </asp:MaskedEditExtender>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="left" style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                    <asp:Label ID="Label30" runat="server" SkinID="lbtxt" Text="Figure agree before"></asp:Label>
                                                                </td>
                                                                <td style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                    &nbsp;
                                                                </td>
                                                                <td align="right" style="border: 1px solid #FFFFFF; background-color: #c0e9ad;">
                                                                    <asp:TextBox ID="txtFigureFrom" runat="server" Width="35px"></asp:TextBox>
                                                                    <asp:MaskedEditExtender ID="MaskedEditExtender4" runat="server" TargetControlID="txtFigureFrom"
                                                                        Mask="99:99" MaskType="Time" AcceptNegative="Left" Enabled="True" 
                                                                        CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" 
                                                                        CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
                                                                        CultureThousandsPlaceholder="" CultureTimePlaceholder="">
                                                                    </asp:MaskedEditExtender>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="left" style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                    <asp:Label ID="Label36" runat="server" SkinID="lbtxt" Text="Lab on spec before "></asp:Label>
                                                                </td>
                                                                <td style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                    &nbsp;
                                                                </td>
                                                                <td align="right" style="border: 1px solid #FFFFFF; background-color: #c0e9ad;">
                                                                    <asp:TextBox ID="txtLabFrom" runat="server" Width="35px"></asp:TextBox>
                                                                    <asp:MaskedEditExtender ID="MaskedEditExtender6" runat="server" TargetControlID="txtLabFrom"
                                                                        Mask="99:99" MaskType="Time" AcceptNegative="Left" Enabled="True" 
                                                                        CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" 
                                                                        CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
                                                                        CultureThousandsPlaceholder="" CultureTimePlaceholder="">
                                                                    </asp:MaskedEditExtender>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td colspan="3" style="height: 5px; border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                    <hr />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td colspan="3" align="center">
                                                                    <asp:GridView ID="gridProduct" SkinID="gridblueNoPageNoWidth" Width="100%" ShowHeader="False"
                                                                        runat="server" DataKeyNames="Product_no,Group_no,Product_name,Product_Event,Line_Code,Shore_Code,Facility_Code,Product_Amount,Product_Index"
                                                                        AutoGenerateColumns="False">
                                                                        <Columns>
                                                                            <asp:TemplateField>
                                                                                <ItemTemplate>
                                                                                    <table border="0" cellpadding="2" cellspacing="0" width="100%">
                                                                                        <tr>
                                                                                            <td align="left" style="border: 1px solid #FFFFFF; background-color: #2d9d1c;">
                                                                                                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                                                                                    <tr>
                                                                                                        <td align="left">
                                                                                                            <asp:Label ID="Label18" runat="server" SkinID="lbHead" Text="<%# Bind('indexproduct') %>"></asp:Label>
                                                                                                        </td>
                                                                                                        <td align="center">
                                                                                                            <asp:Label ID="Labelll" runat="server" SkinID="lbHead" Text="<%# Bind('Product_name') %>"></asp:Label>
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                </table>
                                                                                            </td>
                                                                                            <td style="border: 1px solid #FFFFFF; width: 140px; background-color: #2d9d1c;">
                                                                                                &nbsp;
                                                                                            </td>
                                                                                            <td align="right" style="border: 1px solid #FFFFFF; width: 180px; background-color: #2d9d1c;">
                                                                                                &nbsp;
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td align="left" style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                                                <asp:Label ID="Label40" runat="server" SkinID="lbtxt" Text="Target Quatity."></asp:Label>
                                                                                            </td>
                                                                                            <td style="border: 1px solid #FFFFFF; width: 140px; background-color: #def7d2;">
                                                                                                &nbsp;
                                                                                            </td>
                                                                                            <td align="right" style="border: 1px solid #FFFFFF; width: 180px; background-color: #c0e9ad;">
                                                                                                <asp:Label ID="lbTargetQuatity" runat="server" SkinID="lbtxt" Text="00"></asp:Label>&nbsp;<asp:Label ID="Label50" runat="server" SkinID="lbtxt" Text="MT"></asp:Label>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td align="left" style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                                                <asp:Label ID="Label118" runat="server" SkinID="lbtxt" Text="Tank."></asp:Label>
                                                                                            </td>
                                                                                            <td style="border: 1px solid #FFFFFF; width: 140px; background-color: #def7d2;">
                                                                                                &nbsp;
                                                                                            </td>
                                                                                            <td align="right" style="border: 1px solid #FFFFFF; width: 180px; background-color: #c0e9ad;">
                                                                                                <asp:TextBox ID="txtPlus_Tank" runat="server" Width="50px" Text="0" AutoPostBack="true" onkeypress="return checkNumber(this);"  OnTextChanged="txtPlus_Tank_TextChanged" ></asp:TextBox>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr id="rowBL_Disch" runat="server">
                                                                                            <td align="left" style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                                                <asp:Label ID="Label48" runat="server" SkinID="lbtxt" Text="B/L fig."></asp:Label>
                                                                                            </td>
                                                                                            <td style="border: 1px solid #FFFFFF; width: 140px; background-color: #def7d2;">
                                                                                                &nbsp;
                                                                                            </td>
                                                                                            <td align="right" style="border: 1px solid #FFFFFF; width: 180px; background-color: #c0e9ad;">
                                                                                                <asp:TextBox ID="txtBLFig" runat="server" Width="60px" AutoPostBack="true" OnTextChanged="txtBLFig_TextChanged" ></asp:TextBox>&nbsp;M<sup>3</sup>&nbsp;<asp:TextBox
                                                                                                    ID="txtBLFigMT" runat="server" Width="60px" AutoPostBack="true" OnTextChanged="txtBLFig_TextChanged"></asp:TextBox>&nbsp;MT
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr id="rowSL_Disch" runat="server">
                                                                                            <td align="left" style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                                                <asp:Label ID="lbSLFig" runat="server" SkinID="lbtxt" Text="S/L fig."></asp:Label>
                                                                                            </td>
                                                                                            <td style="border: 1px solid #FFFFFF; width: 140px; background-color: #def7d2;">
                                                                                                &nbsp;
                                                                                            </td>
                                                                                            <td align="right" style="border: 1px solid #FFFFFF; width: 180px; background-color: #c0e9ad;">
                                                                                                <asp:TextBox ID="txtSLFig" runat="server" Width="60px" ></asp:TextBox>&nbsp;M<sup>3</sup>&nbsp;<asp:TextBox
                                                                                                    ID="txtSLFigMT" runat="server" Width="60px" ></asp:TextBox>&nbsp;MT
                                                                                                <input type="hidden" id="hdfRate" runat="server" />
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr id="rowSU_Disch" runat="server">
                                                                                            <td align="left" style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                                                <asp:Label ID="Label73" runat="server" SkinID="lbtxt" Text="S/U fig."></asp:Label>
                                                                                            </td>
                                                                                            <td style="border: 1px solid #FFFFFF; width: 140px; background-color: #def7d2;">
                                                                                                &nbsp;
                                                                                            </td>
                                                                                            <td align="right" style="border: 1px solid #FFFFFF; width: 180px; background-color: #c0e9ad;">
                                                                                                <asp:TextBox ID="txtSUFig" runat="server" Width="60px" ></asp:TextBox>&nbsp;M<sup>3</sup>&nbsp;<asp:TextBox
                                                                                                    ID="txtSUFigMT" runat="server" Width="60px" ></asp:TextBox>&nbsp;MT
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr id="rowShoreRecieve_Disch" runat="server">
                                                                                            <td align="left" style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                                                <asp:Label ID="Label74" runat="server" SkinID="lbtxt" Text="Shore receive."></asp:Label>
                                                                                            </td>
                                                                                            <td style="border: 1px solid #FFFFFF; width: 140px; background-color: #def7d2;">
                                                                                                &nbsp;
                                                                                            </td>
                                                                                            <td align="right" style="border: 1px solid #FFFFFF; width: 180px; background-color: #c0e9ad;">
                                                                                                <asp:TextBox ID="txtShoreReceive" runat="server" Width="60px" ></asp:TextBox>&nbsp;M<sup>3</sup>&nbsp;<asp:TextBox
                                                                                                    ID="txtShoreReceiveMT" runat="server" Width="60px" ></asp:TextBox>&nbsp;MT
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr id="rowShore_Disch" runat="server">
                                                                                            <td align="left" valign="top" style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                                                <asp:Label ID="Label59" runat="server" SkinID="lbtxt" Text="Shore."></asp:Label>
                                                                                            </td>
                                                                                            <td style="border: 1px solid #FFFFFF; width: 140px; background-color: #def7d2;">
                                                                                                &nbsp;
                                                                                            </td>
                                                                                            <td align="right" style="border: 1px solid #FFFFFF; width: 180px; background-color: #c0e9ad;">
                                                                                                <asp:Label ID="Label61" runat="server" SkinID="lbtxt" Text="API."></asp:Label>&nbsp;<asp:TextBox
                                                                                                    ID="txtAPIShore" runat="server" Width="35px"></asp:TextBox>
                                                                                                <asp:Label ID="Label62" runat="server" SkinID="lbtxt" Text="Vis."></asp:Label>&nbsp;<asp:TextBox
                                                                                                    ID="txtVisShore" runat="server" Width="35px"></asp:TextBox>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr id="rowShip_Disch" runat="server">
                                                                                            <td align="left" valign="top" style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                                                <asp:Label ID="Label60" runat="server" SkinID="lbtxt" Text="Ship."></asp:Label>
                                                                                            </td>
                                                                                            <td style="border: 1px solid #FFFFFF; width: 140px; background-color: #def7d2;">
                                                                                                &nbsp;
                                                                                            </td>
                                                                                            <td align="right" style="border: 1px solid #FFFFFF; width: 180px; background-color: #c0e9ad;">
                                                                                                <asp:Label ID="Label63" runat="server" SkinID="lbtxt" Text="API."></asp:Label>&nbsp;<asp:TextBox
                                                                                                    ID="txtAPIShip" runat="server" Width="35px"></asp:TextBox><br />
                                                                                                <asp:Label ID="Label64" runat="server" SkinID="lbtxt" Text="Vis."></asp:Label>&nbsp;<asp:TextBox
                                                                                                    ID="txtVisShip" runat="server" Width="35px"></asp:TextBox>
                                                                                                <input type="hidden" id="Hidden1" runat="server" />
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td align="left" style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                                                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                                                                                    <tr>
                                                                                                        <td align="left">
                                                                                                            <asp:Label ID="Label16" runat="server" SkinID="lbtxt" Text="Fill line before"></asp:Label>
                                                                                                        </td>
                                                                                                        <td align="center">
                                                                                                            <asp:Label ID="Label29" runat="server" SkinID="lbtxt" Text="<%# Bind('Line_Name') %>"></asp:Label>
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                </table>
                                                                                            </td>
                                                                                            <td style="border: 1px solid #FFFFFF; width: 140px; background-color: #def7d2;">
                                                                                                &nbsp;
                                                                                            </td>
                                                                                            <td align="right" style="border: 1px solid #FFFFFF; width: 180px; background-color: #c0e9ad;">
                                                                                                <asp:TextBox ID="txtLineBeforeFrom" runat="server" Width="35px"></asp:TextBox>&nbsp;-&nbsp;<asp:TextBox
                                                                                                    ID="txtLineBeforeTo" runat="server"  Width="35px"></asp:TextBox>
                                                                                                <asp:MaskedEditExtender ID="MaskedEditExtender6" runat="server" TargetControlID="txtLineBeforeFrom"
                                                                                                    Mask="99:99" MaskType="Time" AcceptNegative="Left" Enabled="True">
                                                                                                </asp:MaskedEditExtender>
                                                                                                <asp:MaskedEditExtender ID="MaskedEditExtender7" runat="server" TargetControlID="txtLineBeforeTo"
                                                                                                    Mask="99:99" MaskType="Time" AcceptNegative="Left" Enabled="True">
                                                                                                </asp:MaskedEditExtender>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td align="left" style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                                                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                                                                                    <tr>
                                                                                                        <td align="left">
                                                                                                            <asp:Label ID="Label35" runat="server" SkinID="lbtxt" Text="Connect MLA / hose"></asp:Label>
                                                                                                        </td>
                                                                                                        <td align="center">
                                                                                                            <asp:Label ID="Label49" runat="server" SkinID="lbtxt" Text="<%# Bind('Mla_Host') %>"></asp:Label>
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                </table>
                                                                                            </td>
                                                                                            <td style="border: 1px solid #FFFFFF; width: 140px; background-color: #def7d2;">
                                                                                                &nbsp;
                                                                                            </td>
                                                                                            <td align="right" style="border: 1px solid #FFFFFF; width: 180px; background-color: #c0e9ad;">
                                                                                                <asp:TextBox ID="txtConnectDate" runat="server" Width="50px" onkeypress="return false;" ></asp:TextBox>&nbsp;<asp:ImageButton ID="imgConnectDate" runat="server" ImageUrl="~/Image/calendar.png" />&nbsp;<asp:TextBox ID="txtConnectMLAFrom" runat="server" Width="35px"></asp:TextBox>&nbsp;-&nbsp;<asp:TextBox
                                                                                                    ID="txtConnectMLATo" runat="server" Width="35px"></asp:TextBox>
                                                                                             <asp:CalendarExtender ID="CalendarExtenderConnnect" runat="server" 
                                                                                                 TargetControlID="txtConnectDate" Format="dd/MM/yy" 
                                                                                          PopupButtonID="imgConnectDate" Enabled="True"></asp:CalendarExtender>
                                                                                                <asp:MaskedEditExtender ID="MaskedEditExtender15" runat="server" TargetControlID="txtConnectMLAFrom"
                                                                                                    Mask="99:99" MaskType="Time" AcceptNegative="Left" Enabled="True">
                                                                                                </asp:MaskedEditExtender>
                                                                                                <asp:MaskedEditExtender ID="MaskedEditExtender16" runat="server" TargetControlID="txtConnectMLATo"
                                                                                                    Mask="99:99" MaskType="Time" AcceptNegative="Left" Enabled="True">
                                                                                                </asp:MaskedEditExtender>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td align="left" style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                                                            <asp:Label ID="Label38" runat="server" SkinID="lbtxt" Text="Started S/L, S/U"></asp:Label>
                                                                                            </td>
                                                                                            <td align="right" style="border: 1px solid #FFFFFF; width: 140px; background-color: #def7d2;">
                                                                                                <asp:Label ID="lbStartStandardDate" runat="server" SkinID="lbtxt"></asp:Label>
                                                                                                &nbsp;<asp:Label ID="lbStartStandard" runat="server" SkinID="lbtxt" Text="00:00"></asp:Label>
                                                                                            </td>
                                                                                            <td align="right" style="border: 1px solid #FFFFFF; width: 180px; background-color: #c0e9ad;">
                                                                                                <asp:TextBox ID="txtStartActualDate" runat="server" Width="50px" onkeypress="return false;" ></asp:TextBox>&nbsp;<asp:ImageButton ID="imgStartActualDate" runat="server" ImageUrl="~/Image/calendar.png" />&nbsp;<asp:TextBox ID="txtStartActualTime" runat="server" Width="35px"></asp:TextBox>
                                                                                             <asp:CalendarExtender ID="CalendarExtender3" runat="server" 
                                                                                                 TargetControlID="txtStartActualDate" Format="dd/MM/yy" 
                                                                                          PopupButtonID="imgStartActualDate" Enabled="True"></asp:CalendarExtender>
                                                                                            <asp:MaskedEditExtender ID="MaskedEditExtender3" runat="server" TargetControlID="txtStartActualTime"
                                                                                                 Mask="99:99" MaskType="Time" AcceptNegative="Left" ></asp:MaskedEditExtender>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td align="left" style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                                                            <asp:Label ID="Label41" runat="server" SkinID="lbtxt" Text="Stopped S/L, S/U"></asp:Label>
                                                                                            </td>
                                                                                            <td align="right" style="border: 1px solid #FFFFFF; width: 140px; background-color: #def7d2;">
                                                                                                <asp:Label ID="lbStopStandardDate" runat="server" SkinID="lbtxt"></asp:Label>&nbsp;<asp:Label
                                                                                                    ID="lbStopStandard" runat="server" SkinID="lbtxt" Text="00:00"></asp:Label>
                                                                                            </td>
                                                                                            <td align="right" style="border: 1px solid #FFFFFF; width: 180px; background-color: #c0e9ad;">
                                                                                                <asp:TextBox ID="txtStopActualDate" runat="server" Width="50px" onkeypress="return false;" ></asp:TextBox>&nbsp;<asp:ImageButton ID="imgStopActualDate" runat="server" ImageUrl="~/Image/calendar.png" />&nbsp;<asp:TextBox ID="txtStopActualTime" runat="server" Width="35px"></asp:TextBox>
                                                                                             <asp:CalendarExtender ID="CalendarExtender1" runat="server" 
                                                                                                 TargetControlID="txtStopActualDate" Format="dd/MM/yy" 
                                                                                          PopupButtonID="imgStopActualDate" Enabled="True"></asp:CalendarExtender>
                                                                                            <asp:MaskedEditExtender ID="MaskedEditExtender5" runat="server" TargetControlID="txtStopActualTime"
                                                                                                 Mask="99:99" MaskType="Time" AcceptNegative="Left" ></asp:MaskedEditExtender>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td align="left" style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                                                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                                                                                    <tr>
                                                                                                        <td align="left">
                                                                                                            <asp:Label ID="Label45" runat="server" SkinID="lbtxt" Text="Fill line after"></asp:Label>
                                                                                                        </td>
                                                                                                        <td align="center">
                                                                                                            <asp:Label ID="Label37" runat="server" SkinID="lbtxt" Text="<%# Bind('Line_Name') %>"></asp:Label>
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                </table>
                                                                                            </td>
                                                                                            <td style="border: 1px solid #FFFFFF; width: 140px; background-color: #def7d2;">
                                                                                                &nbsp;
                                                                                            </td>
                                                                                            <td align="right" style="border: 1px solid #FFFFFF; width: 180px; background-color: #c0e9ad;">
                                                                                                <asp:TextBox ID="txtLineafterFrom" runat="server" Width="35px"></asp:TextBox>&nbsp;-&nbsp;<asp:TextBox
                                                                                                    ID="txtLineafterTo" runat="server" Width="35px"></asp:TextBox>
                                                                                                <asp:MaskedEditExtender ID="MaskedEditExtender17" runat="server" TargetControlID="txtLineafterFrom"
                                                                                                    Mask="99:99" MaskType="Time" AcceptNegative="Left" Enabled="True">
                                                                                                </asp:MaskedEditExtender>
                                                                                                <asp:MaskedEditExtender ID="MaskedEditExtender18" runat="server" TargetControlID="txtLineafterTo"
                                                                                                    Mask="99:99" MaskType="Time" AcceptNegative="Left" Enabled="True">
                                                                                                </asp:MaskedEditExtender>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td align="left" style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                                                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                                                                                    <tr>
                                                                                                        <td align="left">
                                                                                                            <asp:Label ID="Label47" runat="server" SkinID="lbtxt" Text="Disconnect MLA / hose"></asp:Label>
                                                                                                        </td>
                                                                                                        <td align="center">
                                                                                                            <asp:Label ID="Label46" runat="server" SkinID="lbtxt" Text="<%# Bind('Mla_Host') %>"></asp:Label>
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                </table>
                                                                                            </td>
                                                                                            <td style="border: 1px solid #FFFFFF; width: 140px; background-color: #def7d2;">
                                                                                                &nbsp;
                                                                                            </td>
                                                                                            <td align="right" style="border: 1px solid #FFFFFF; width: 180px; background-color: #c0e9ad;">
                                                                                                <asp:TextBox ID="txtDisDate" runat="server" Width="50px" onkeypress="return false;" ></asp:TextBox>&nbsp;<asp:ImageButton ID="imgDisDate" runat="server" ImageUrl="~/Image/calendar.png" />&nbsp;<asp:TextBox ID="txtDisMLAFrom" runat="server" Width="35px"></asp:TextBox>&nbsp;-&nbsp;<asp:TextBox
                                                                                                    ID="txtDisMLATo" runat="server" Width="35px"></asp:TextBox>
                                                                                                    <asp:CalendarExtender ID="CalendarExtender4" runat="server" 
                                                                                                 TargetControlID="txtDisDate" Format="dd/MM/yy" 
                                                                                          PopupButtonID="imgDisDate" Enabled="True"></asp:CalendarExtender>
                                                                                                <asp:MaskedEditExtender ID="MaskedEditExtender19" runat="server" TargetControlID="txtDisMLAFrom"
                                                                                                    Mask="99:99" MaskType="Time" AcceptNegative="Left" Enabled="True">
                                                                                                </asp:MaskedEditExtender>
                                                                                                <asp:MaskedEditExtender ID="MaskedEditExtender20" runat="server" TargetControlID="txtDisMLATo"
                                                                                                    Mask="99:99" MaskType="Time" AcceptNegative="Left" Enabled="True">
                                                                                                </asp:MaskedEditExtender>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr id="rowBL_Load" runat="server">
                                                                                            <td align="left" style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                                                <asp:Label ID="Label43" runat="server" SkinID="lbtxt" Text="B/L fig."></asp:Label>
                                                                                            </td>
                                                                                            <td style="border: 1px solid #FFFFFF; width: 140px; background-color: #def7d2;">
                                                                                                &nbsp;
                                                                                            </td>
                                                                                            <td align="right" style="border: 1px solid #FFFFFF; width: 180px; background-color: #c0e9ad;">
                                                                                                <asp:TextBox ID="txtBLM3_Load" runat="server" Width="60px" AutoPostBack="true" OnTextChanged="txtBLFig_TextChanged"></asp:TextBox>&nbsp;M<sup>3</sup>&nbsp;<asp:TextBox
                                                                                                    ID="txtBLMT_Load" runat="server" Width="60px" AutoPostBack="true" OnTextChanged="txtBLFig_TextChanged"></asp:TextBox>&nbsp;MT
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr id="rowSL_Load" runat="server">
                                                                                            <td align="left" style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                                                <asp:Label ID="Label66" runat="server" SkinID="lbtxt" Text="S/L fig."></asp:Label>
                                                                                            </td>
                                                                                            <td style="border: 1px solid #FFFFFF; width: 140px; background-color: #def7d2;">
                                                                                                &nbsp;
                                                                                            </td>
                                                                                            <td align="right" style="border: 1px solid #FFFFFF; width: 180px; background-color: #c0e9ad;">
                                                                                                <asp:TextBox ID="txtSLM3_Load" runat="server" Width="60px"></asp:TextBox>&nbsp;M<sup>3</sup>&nbsp;<asp:TextBox
                                                                                                    ID="txtSLMT_Load" runat="server" Width="60px" AutoPostBack="true"></asp:TextBox>&nbsp;MT
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr id="rowShore_Load" runat="server">
                                                                                            <td align="left" valign="top" style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                                                <asp:Label ID="Label67" runat="server" SkinID="lbtxt" Text="Shore."></asp:Label>
                                                                                            </td>
                                                                                            <td style="border: 1px solid #FFFFFF; width: 140px; background-color: #def7d2;">
                                                                                                &nbsp;
                                                                                            </td>
                                                                                            <td align="right" style="border: 1px solid #FFFFFF; width: 180px; background-color: #c0e9ad;">
                                                                                                <asp:Label ID="Label68" runat="server" SkinID="lbtxt" Text="API."></asp:Label>&nbsp;<asp:TextBox
                                                                                                    ID="txtAPIShore_Load" runat="server" Width="35px"></asp:TextBox>
                                                                                                <asp:Label ID="Label69" runat="server" SkinID="lbtxt" Text="Vis."></asp:Label>&nbsp;<asp:TextBox
                                                                                                    ID="txtViscosityShore_Load" runat="server" Width="35px"></asp:TextBox>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr id="rowShip_Load" runat="server">
                                                                                            <td align="left" valign="top" style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                                                <asp:Label ID="Label70" runat="server" SkinID="lbtxt" Text="Ship."></asp:Label>
                                                                                            </td>
                                                                                            <td style="border: 1px solid #FFFFFF; width: 140px; background-color: #def7d2;">
                                                                                                &nbsp;
                                                                                            </td>
                                                                                            <td align="right" style="border: 1px solid #FFFFFF; width: 180px; background-color: #c0e9ad;">
                                                                                                <asp:Label ID="Label71" runat="server" SkinID="lbtxt" Text="API."></asp:Label>&nbsp;<asp:TextBox
                                                                                                    ID="txtAPIShip_Load" runat="server" Width="35px"></asp:TextBox>
                                                                                                <asp:Label ID="Label72" runat="server" SkinID="lbtxt" Text="Vis."></asp:Label>&nbsp;<asp:TextBox
                                                                                                    ID="txtViscositShip_Load" runat="server" Width="35px"></asp:TextBox>
                                                                                                <input type="hidden" id="Hidden3" runat="server" />
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                        </Columns>
                                                                    </asp:GridView>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td colspan="3" style="height: 5px; border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                    <hr />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="left" style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                    <asp:Label ID="Label19" runat="server" SkinID="lbtxt" Text="Sampling"></asp:Label>
                                                                </td>
                                                                <td style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                    &nbsp;
                                                                </td>
                                                                <td align="right" style="border: 1px solid #FFFFFF; background-color: #c0e9ad;">
                                                                    <asp:TextBox ID="txtSamplingFrom" runat="server" Width="35px"></asp:TextBox>&nbsp;-&nbsp;<asp:TextBox
                                                                        ID="txtSamplingTo" runat="server" Width="35px"></asp:TextBox>
                                                                    <asp:MaskedEditExtender ID="MaskedEditExtender8" runat="server" TargetControlID="txtSamplingFrom"
                                                                        Mask="99:99" MaskType="Time" AcceptNegative="Left" Enabled="True" 
                                                                        CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" 
                                                                        CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
                                                                        CultureThousandsPlaceholder="" CultureTimePlaceholder="">
                                                                    </asp:MaskedEditExtender>
                                                                    <asp:MaskedEditExtender ID="MaskedEditExtender9" runat="server" TargetControlID="txtSamplingTo"
                                                                        Mask="99:99" MaskType="Time" AcceptNegative="Left" Enabled="True" 
                                                                        CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" 
                                                                        CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
                                                                        CultureThousandsPlaceholder="" CultureTimePlaceholder="">
                                                                    </asp:MaskedEditExtender>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="left" style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                    <asp:Label ID="Label20" runat="server" SkinID="lbtxt" Text="Lab on spec after"></asp:Label>
                                                                </td>
                                                                <td style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                    &nbsp;
                                                                </td>
                                                                <td align="right" style="border: 1px solid #FFFFFF; background-color: #c0e9ad;">
                                                                    <asp:TextBox ID="txtLabafter" runat="server" Width="35px"></asp:TextBox>
                                                                    <asp:MaskedEditExtender ID="MaskedEditExtender10" runat="server" TargetControlID="txtLabafter"
                                                                        Mask="99:99" MaskType="Time" AcceptNegative="Left" Enabled="True" 
                                                                        CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" 
                                                                        CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
                                                                        CultureThousandsPlaceholder="" CultureTimePlaceholder="">
                                                                    </asp:MaskedEditExtender>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="left" style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                    <asp:Label ID="Label22" runat="server" SkinID="lbtxt" Text="Tank inspection after"></asp:Label>
                                                                </td>
                                                                <td style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                    &nbsp;
                                                                </td>
                                                                <td align="right" style="border: 1px solid #FFFFFF; background-color: #c0e9ad;">
                                                                    <asp:TextBox ID="txtTankafterFrom" runat="server" Width="35px"></asp:TextBox>&nbsp;-&nbsp;<asp:TextBox
                                                                        ID="txtTankafterTo" runat="server" Width="35px"></asp:TextBox>
                                                                    <asp:MaskedEditExtender ID="MaskedEditExtender11" runat="server" TargetControlID="txtTankafterFrom"
                                                                        Mask="99:99" MaskType="Time" AcceptNegative="Left" Enabled="True" 
                                                                        CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" 
                                                                        CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
                                                                        CultureThousandsPlaceholder="" CultureTimePlaceholder="">
                                                                    </asp:MaskedEditExtender>
                                                                    <asp:MaskedEditExtender ID="MaskedEditExtender12" runat="server" TargetControlID="txtTankafterTo"
                                                                        Mask="99:99" MaskType="Time" AcceptNegative="Left" Enabled="True" 
                                                                        CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" 
                                                                        CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
                                                                        CultureThousandsPlaceholder="" CultureTimePlaceholder="">
                                                                    </asp:MaskedEditExtender>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="left" style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                    <asp:Label ID="Label24" runat="server" SkinID="lbtxt" Text="Figure agree after"></asp:Label>
                                                                </td>
                                                                <td style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                    &nbsp;
                                                                </td>
                                                                <td align="right" style="border: 1px solid #FFFFFF; background-color: #c0e9ad;">
                                                                    <asp:TextBox ID="txtFigureafter" runat="server" Width="35px"></asp:TextBox>
                                                                    <asp:MaskedEditExtender ID="MaskedEditExtender13" runat="server" TargetControlID="txtFigureafter"
                                                                        Mask="99:99" MaskType="Time" AcceptNegative="Left" Enabled="True" 
                                                                        CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" 
                                                                        CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
                                                                        CultureThousandsPlaceholder="" CultureTimePlaceholder="">
                                                                    </asp:MaskedEditExtender>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="left" style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                    <asp:Label ID="Label26" runat="server" SkinID="lbtxt" Text="Document on board"></asp:Label>
                                                                </td>
                                                                <td style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                    &nbsp;
                                                                </td>
                                                                <td align="right" style="border: 1px solid #FFFFFF; background-color: #c0e9ad;">
                                                                    <asp:TextBox ID="txtDocument" runat="server" Width="35px"></asp:TextBox>
                                                                    <asp:MaskedEditExtender ID="MaskedEditExtender14" runat="server" TargetControlID="txtDocument"
                                                                        Mask="99:99" MaskType="Time" AcceptNegative="Left" Enabled="True" 
                                                                        CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" 
                                                                        CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
                                                                        CultureThousandsPlaceholder="" CultureTimePlaceholder="">
                                                                    </asp:MaskedEditExtender>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                    <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                                                        <tr>
                                                                            <td align="left">
                                                                                <asp:Label ID="Label21" runat="server" SkinID="lbtxt" Text="Bunker loading"></asp:Label>
                                                                            </td>
                                                                            <td align="center">
                                                                                <asp:TextBox ID="txtBunker" runat="server" Width="60px" AutoPostBack="True" 
                                                                                    Text="0"></asp:TextBox>
                                                                                &nbsp;<asp:Label ID="lbTruck" runat="server" SkinID="lbtxt" Text="Truck"></asp:Label>
                                                                            </td>
                                                                            <td align="center">
                                                                                <asp:Label ID="lbTruckTime" runat="server" SkinID="lbtxt" Text="00:00"></asp:Label>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </td>
                                                                <td style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                    <asp:Label ID="lbBunkerStandardDate" runat="server" SkinID="lbtxt"></asp:Label>&nbsp;<asp:Label
                                                                        ID="lbBunkerStandard" runat="server" SkinID="lbtxt" Text="00:00"></asp:Label>
                                                                </td>
                                                                <td align="right" style="border: 1px solid #FFFFFF; background-color: #c0e9ad;">
                                                                     <asp:TextBox ID="txtBunkerActualDate" runat="server" Width="55px" onkeypress="return false;" ></asp:TextBox><asp:ImageButton ID="imgBunkerActualDate" runat="server" ImageUrl="~/Image/calendar.png" />&nbsp;<asp:TextBox ID="txtBunkerActualTime" runat="server" Width="30px"></asp:TextBox>-<asp:TextBox ID="txtBunkerActualTimeTo" runat="server" Width="30px"></asp:TextBox>
                                                                                             <asp:CalendarExtender ID="CalendarExtender2" runat="server" 
                                                                                                 TargetControlID="txtBunkerActualDate" Format="dd/MM/yy" 
                                                                                          PopupButtonID="imgBunkerActualDate" Enabled="True"></asp:CalendarExtender>
                                                                                            <asp:MaskedEditExtender ID="MaskedEditExtender21" 
                                                                         runat="server" TargetControlID="txtBunkerActualTime"
                                                                                                 Mask="99:99" MaskType="Time" AcceptNegative="Left" 
                                                                         CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" 
                                                                         CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
                                                                         CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True" ></asp:MaskedEditExtender>
                                                                         <asp:MaskedEditExtender ID="MaskedEditExtender23BunkerTimeto" 
                                                                         runat="server" TargetControlID="txtBunkerActualTimeTo"
                                                                                                 Mask="99:99" MaskType="Time" AcceptNegative="Left" 
                                                                         CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" 
                                                                         CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
                                                                         CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True" ></asp:MaskedEditExtender>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td  align="left" style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                                <asp:Label ID="Label23" runat="server" SkinID="lbtxt" Text="Departed"></asp:Label>
                                                                </td>
                                                                <td style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                    <asp:Label ID="lbDepartStandardDate" runat="server" SkinID="lbtxt"></asp:Label>&nbsp;<asp:Label
                                                                        ID="lbDepartStandard" runat="server" SkinID="lbtxt" Text="00:00"></asp:Label>
                                                                </td>
                                                                <td align="right" style="border: 1px solid #FFFFFF; background-color: #c0e9ad;">
                                                                    <asp:TextBox ID="txtDepartActualDate" runat="server" Width="50px" onkeypress="return false;" ></asp:TextBox>&nbsp;<asp:ImageButton ID="imgDepartActualDate" runat="server" ImageUrl="~/Image/calendar.png" />&nbsp;<asp:TextBox ID="txtDepartAutualTime" runat="server" Width="35px"></asp:TextBox>
                                                                                             <asp:CalendarExtender ID="CalendarExtender1" runat="server" 
                                                                                                 TargetControlID="txtDepartActualDate" Format="dd/MM/yy" 
                                                                                          PopupButtonID="imgDepartActualDate" Enabled="True"></asp:CalendarExtender>
                                                                                            <asp:MaskedEditExtender ID="MaskedEditExtender5" 
                                                                        runat="server" TargetControlID="txtDepartAutualTime"
                                                                                                 Mask="99:99" MaskType="Time" 
                                                                        AcceptNegative="Left" CultureAMPMPlaceholder="" 
                                                                        CultureCurrencySymbolPlaceholder="" CultureDateFormat="" 
                                                                        CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
                                                                        CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True" ></asp:MaskedEditExtender>
                                                                </td>
                                                            </tr>
                                                             
                                                            <tr>
                                                                <td colspan="3" style="height: 5px;">
                                                                    <img src="../Image/space.gif" />
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </fieldset>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td valign="top">
                                       <table width="100%" border="0" cellpadding="2" cellspacing="0">
                                           <tr>
                                            <td>
                                              <fieldset>
                                                  <asp:Literal ID="LiReport" runat="server"></asp:Literal>
                                            </fieldset>
                                            </td>
                                           </tr>
                                       </table>
                                    </td>
                                </tr>
                                <tr>
                                                                <td colspan="2" align="center">
                                                                    <fieldset style="width: 98%;"><legend style="color: #848585; font-family: Tahoma; font-size: 14px; font-weight: bold;">Tug Boat</legend>
                                                                       <table width="95%" border="0" cellpadding="0" cellspacing="0">
                                                                       <tr>
                                                                                <td colspan="2" style="height: 5px;">
                                                                                    <img src="../Image/space.gif" />
                                                                                </td>
                                                                            </tr>
                                                                          <tr>
                                                                             <td style="border: 1px solid #FFFFFF;width:80px; background-color: #2d9d1c;" align="left"><asp:Label ID="lbTugBeforeHead" runat="server" SkinID="lbHead" Text="Before" ></asp:Label></td>
                                                                             <td align="center" style="border: 1px solid #FFFFFF;background-color: #def7d2;" ><asp:Label id="lbTugBefore" runat="server" SkinID="lbtxt" Text=" " ></asp:Label>&nbsp;</td>
                                                                          </tr>
                                                                          <tr>
                                                                             <td style="border: 1px solid #FFFFFF;width:80px; background-color: #2d9d1c;" align="left"><asp:Label ID="Label65" runat="server" SkinID="lbHead" Text="After" ></asp:Label></td>
                                                                             <td align="center" style="border: 1px solid #FFFFFF;background-color: #def7d2;" ><asp:Label id="lbTugAfter" runat="server" SkinID="lbtxt" Text=" " ></asp:Label>&nbsp;</td>
                                                                          </tr>
                                                                          <tr>
                                                                                <td colspan="2" style="height: 5px;">
                                                                                    <img src="../Image/space.gif" />
                                                                                </td>
                                                                            </tr>
                                                                       </table>
                                                                    </fieldset>
                                                                </td>
                                                             </tr>
                                                            <tr>
                                                                <td colspan="2" align="center">
                                                                    <fieldset style="width: 98%;">
                                                                        <legend style="color: #848585; font-family: Tahoma; font-size: 14px; font-weight: bold;">
                                                                            Additional</legend>
                                                                        <table width="95%" border="0" cellpadding="0" cellspacing="0">
                                                                            <tr>
                                                                                <td colspan="3" style="height: 5px;">
                                                                                    <img src="../Image/space.gif" />
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td align="center" style="border: 1px solid #FFFFFF; background-color: #2d9d1c;">
                                                                                    <asp:Label ID="Label53" runat="server" SkinID="lbHead" Text="Disposal(Kgs)"></asp:Label>
                                                                                </td>
                                                                                <td align="center" style="border: 1px solid #FFFFFF; background-color: #2d9d1c;">
                                                                                    <asp:Label ID="Label54" runat="server" SkinID="lbHead" Text="Bunker(FO)"></asp:Label>
                                                                                </td>
                                                                                <td align="center" style="border: 1px solid #FFFFFF; background-color: #2d9d1c;">
                                                                                    <asp:Label ID="Label55" runat="server" SkinID="lbHead" Text="Bunker(DO)"></asp:Label>
                                                                                </td>
                                                                                <td align="center" style="border: 1px solid #FFFFFF; background-color: #2d9d1c;">
                                                                                    <asp:Label ID="Label56" runat="server" SkinID="lbHead" Text="Water(MT)"></asp:Label>
                                                                                </td>
                                                                                <td align="center" style="border: 1px solid #FFFFFF; background-color: #2d9d1c;">
                                                                                    <asp:Label ID="Label57" runat="server" SkinID="lbHead" Text="Excise Req."></asp:Label>
                                                                                </td>
                                                                                <td align="center" style="border: 1px solid #FFFFFF; background-color: #2d9d1c;">
                                                                                    <asp:Label ID="Label58" runat="server" SkinID="lbHead" Text="Nitrogen(NQ)"></asp:Label>
                                                                                </td>
                                                                                <td align="center" style="border: 1px solid #FFFFFF; background-color: #2d9d1c;">
                                                                                    <asp:Label ID="Label75" runat="server" SkinID="lbHead" Text="Crane(Hr.)"></asp:Label>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                                    <asp:TextBox ID="txtDisposal" runat="server" Text="0" onkeypress="return checkNumber(this);" Width="60px"></asp:TextBox>
                                                                                </td>
                                                                                <td style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                                    <asp:TextBox ID="txtBunker_FO" runat="server" Text="0" onkeypress="return checkNumber(this);" Width="60px"></asp:TextBox>
                                                                                </td>
                                                                                <td style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                                    <asp:TextBox ID="txtBunker_DO" runat="server" Text="0" onkeypress="return checkNumber(this);" Width="60px"></asp:TextBox>
                                                                                </td>
                                                                                <td style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                                    <asp:TextBox ID="txtWater" runat="server" Text="0" onkeypress="return checkNumber(this);" Width="60px"></asp:TextBox>
                                                                                </td>
                                                                                <td style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                                    <asp:TextBox ID="txtExcise" runat="server" Text="0" onkeypress="return checkNumber(this);" Width="60px"></asp:TextBox>
                                                                                </td>
                                                                                <td style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                                    <asp:TextBox ID="txtNitrogen" runat="server" Text="0" onkeypress="return checkNumber(this);" Width="60px"></asp:TextBox>
                                                                                </td>
                                                                                 <td style="border: 1px solid #FFFFFF; background-color: #def7d2;">
                                                                                    <asp:TextBox ID="txtElectic" runat="server" Text="0" onkeypress="return checkNumber(this);" Width="60px"></asp:TextBox>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                               <td colspan="7">
                                                                                   <asp:GridView ID="gridStock" runat="server" SkinID="gridblueNoPage" DataKeyNames="Stock_Code,Grade,Brand,Count,Status"
                                                                                            AutoGenerateColumns="False">
                                                                                            <Columns>
                                                                                                <asp:TemplateField HeaderText="COUNT">
                                                                                                 <ItemTemplate>
                                                                                                       <asp:CheckBox ID="chkStock" runat="server" />
                                                                                                 </ItemTemplate>
                                                                                                 <ItemStyle HorizontalAlign="Center" Width="40px" />
                                                                                                 </asp:TemplateField>
                                                                                                <asp:BoundField HeaderText="GRADE" DataField="Grade" />
                                                                                                <asp:BoundField HeaderText="BRAND" DataField="Brand" >
                                                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                                                </asp:BoundField>
                                                                                                <asp:TemplateField HeaderText="COUNT">
                                                                                                 <ItemTemplate>
                                                                                                       <asp:TextBox ID="txtCount" runat="server" Text="<%# Bind('Count')%>" Width="97px" onkeypress="return checkNumber(this);" ></asp:TextBox>
                                                                                                 </ItemTemplate>
                                                                                                 <ItemStyle HorizontalAlign="Center" Width="100px" />
                                                                                                 </asp:TemplateField>
                                                                                                 <asp:BoundField HeaderText="REMARK" DataField="Remark" Visible="false" />
                                                                                            </Columns>
                                                                                        </asp:GridView>
                                                                               </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td colspan="3" style="height: 5px;">
                                                                                    <img src="../Image/space.gif" />
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </fieldset>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td colspan="2" >
                                                                     <fieldset style="width: 98%;">
                                                                        <legend style="color: #848585; font-family: Tahoma; font-size: 14px; font-weight: bold;">
                                                                            Delay</legend>
                                                                    <asp:UpdatePanel ID="PanelDelay" runat="server" UpdateMode="Conditional">
                                                                        <ContentTemplate>
                                                                            <table width="95%" border="0" cellpadding="2" cellspacing="0">
                                                                            <tr>
                                                                                <td style="height: 5px;">
                                                                                    <img src="../Image/space.gif" />
                                                                                </td>
                                                                            </tr>
                                                                                <tr>
                                                                                    <td>
                                                                                        <asp:GridView ID="gridDelay" runat="server" SkinID="gridblueNoPage" DataKeyNames=""
                                                                                            AutoGenerateColumns="False">
                                                                                            <Columns>
                                                                                                <asp:BoundField HeaderText="Delay Time" DataField="Delay_DateTime" />
                                                                                                <asp:BoundField HeaderText="Cause of Delay" DataField="Cause_Delay" ItemStyle-HorizontalAlign="Center" />
                                                                                                <asp:BoundField HeaderText="Delay" DataField="Delay_Time" ItemStyle-HorizontalAlign="Center"
                                                                                                    ItemStyle-Width="60px" />
                                                                                                <asp:TemplateField HeaderText="แก้ไข" ItemStyle-Width="60px" ItemStyle-HorizontalAlign="Center">
                                                                                                    <ItemTemplate>
                                                                                                        <asp:ImageButton ID="imgedit" CommandName="cmdedit" CommandArgument="<%# Container.DataItemIndex %>"   
                                                                                                            runat="server" ImageUrl="~/Image/edit-24.gif" />
                                                                                                    </ItemTemplate>
                                                                                                </asp:TemplateField>
                                                                                                <asp:TemplateField HeaderText="ลบ" ItemStyle-Width="60px" ItemStyle-HorizontalAlign="Center">
                                                                                                    <ItemTemplate>
                                                                                                        <asp:ImageButton ID="imgdelete" CommandName="cmddelete" CommandArgument="<%# Container.DataItemIndex %>"
                                                                                                            OnClientClick="showConfirm(this); return false;" runat="server" ImageUrl="~/Image/cancel-24.gif" />
                                                                                                    </ItemTemplate>
                                                                                                </asp:TemplateField>
                                                                                            </Columns>
                                                                                        </asp:GridView>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                  <td align="left">
                                                                                      &nbsp;<asp:Button ID="btnDelay" runat="server" Text="Add Cause of Delay" CssClass="ButtonStyle" Width="150px" />
                                                                                  </td>
                                                                                </tr>
                                                                                <tr>
                                                                                <td style="height: 5px;">
                                                                                    <img src="../Image/space.gif" />
                                                                                </td>
                                                                            </tr>
                                                                            </table>
                                                                        </ContentTemplate>
                                                                    </asp:UpdatePanel>
                                                                    </fieldset>
                                                                </td>
                                                            </tr>
                                                             <tr>
                                                               <td colspan="2" >
                                                                  <table width="100%" border="0" cellpadding="0" cellspacing="0" >
                                                                     <tr>
                                                                        <td style="width:50px;">&nbsp;</td>
                                                                        <td align="left">
                                                                            <asp:Literal ID="LiStatus" runat="server"></asp:Literal>
                                                                        </td>
                                                                     </tr>
                                                                  </table>
                                                               </td>
                                                            </tr>
                                 <tr>
                                      <td align="center" colspan="2">
                                                <asp:Button ID="btnSave" runat="server" CssClass="ButtonStyle" Text="Save" />
                                                <asp:Button ID="btnPrintShip" runat="server" CssClass="ButtonStyle" Text="Print" />
                                             <asp:Button ID="btnCancel" runat="server" CssClass="ButtonStyle" Text="Back" />
                                            <asp:Button ID="btnReject" runat="server" CssClass="ButtonStyle" Text="Reject" OnClientClick="return confirm('หลังจากทำการ Reject ระบบจะทำการย้อนสถานะกลับไปเริ่มต้น Input ข้อมูลใหม่!!');" />
                                           <asp:Button ID="btnSend" runat="server" CssClass="ButtonStyle" Width="120px" Text="Input Complete" />
                                            <asp:Button ID="btnCheck" runat="server" Width="140px" CssClass="ButtonStyle" Text="Shift.Sup Approve" />
                                            <asp:Button ID="btnApprove" runat="server" CssClass="ButtonStyle" Text="Approve" />
                                     </td>
                                 </tr>
                                                                                             <tr>
                                                                <td colspan="2" style="height: 5px;">
                                                                    <img src="../Image/space.gif" />
                                                                </td>
                                                            </tr>
                            </table>
                            </ContentTemplate>
                            </asp:TabPanel>
                            <asp:TabPanel  ID="TabServiceReport" runat="server"  HeaderText="SHIP SERVICE REPORT">
                    <HeaderTemplate>SHIP SERVICE REPORT
                    </HeaderTemplate>
                    <ContentTemplate>
                      <table width="100%" border="0" cellpadding="0" cellspacing="0">
                      <tr>
                         <td colspan="2">
                            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                 <tr style="background-color:#9aceff;">
                                   <td align="center" valign="middle">
                                      <table width="100%" border="0" cellpadding="2" cellspacing="0">
                                         <tr>
                                           <td><asp:Label ID="Label25" runat="server" SkinId="lbHeadReport" Text="PTOL"></asp:Label></td>
                                         </tr>
                                         <tr>
                                           <td><asp:Label ID="Label27" runat="server" SkinId="lbHeadReport" Text="Ship Loading/Unloading"></asp:Label></td>
                                         </tr>
                                         <tr>
                                           <td><asp:Label ID="Label28" runat="server" SkinId="lbHeadReport" Text="Service Report"></asp:Label></td>
                                         </tr>
                                      </table>
                                   </td>
                                   <td align="right" valign="bottom" style="width:130px;">
                                      <asp:Label ID="Label113" runat="server" SkinID="lbHeadReport" Text="No." ></asp:Label>&nbsp;<asp:Label ID="lbNo2" runat="server" SkinID="lbtxt" ></asp:Label>&nbsp;<br />
                                      <asp:Label ID="lbDepartDatereport" runat="server" SkinID="lbHeadReport" ></asp:Label>&nbsp;
                                   </td>
                                 </tr>
                            </table>
                         </td>
                      </tr>
                                <tr>
                                    <td colspan="2">
                                        <table width="100%" border="0" cellpadding="2" cellspacing="0">
                                           <tr>
                                             <td style="width:20%;" align="right"><asp:Label ID="LBHEAD" runat="server" SkinId="lbtxt" Text="Attention :"></asp:Label>&nbsp;</td>
                                             <td align="left"><asp:Label ID="lbAttention" runat="server" SkinId="lbtxt"></asp:Label></td>
                                           </tr>
                                           <tr>
                                             <td style="width:20%;" align="right"><asp:Label ID="Label51" runat="server" SkinId="lbtxt" Text="Commodity :"></asp:Label>&nbsp;</td>
                                             <td align="left"><asp:Label ID="lbCommodity" runat="server" SkinId="lbtxt"></asp:Label></td>
                                           </tr>
                                           <tr>
                                             <td style="width:20%;" align="right"><asp:Label ID="Label78" runat="server" SkinId="lbtxt" Text="Vessel Name :"></asp:Label>&nbsp;</td>
                                             <td align="left"><asp:Label ID="lbVessel_Name" runat="server" SkinId="lbtxt"></asp:Label></td>
                                           </tr>
                                           <tr>
                                             <td style="width:20%;" align="right"><asp:Label ID="Label81" runat="server" SkinId="lbtxt" Text="Wharf No. :"></asp:Label>&nbsp;</td>
                                             <td align="left"><asp:Label ID="lbWharfNo" runat="server" SkinId="lbtxt"></asp:Label></td>
                                           </tr>
                                           <tr>
                                             <td style="width:20%;" align="right"><asp:Label ID="Label83" runat="server" SkinId="lbtxt" Text="Vessel Berth :"></asp:Label>&nbsp;</td>
                                             <td align="left"><asp:Label ID="lbVessel_Berth" runat="server" SkinId="lbtxt"></asp:Label></td>
                                           </tr>
                                           <tr>
                                             <td style="width:20%;" align="right"><asp:Label ID="Label85" runat="server" SkinId="lbtxt" Text="Vessel Depart :"></asp:Label>&nbsp;</td>
                                             <td align="left"><asp:Label ID="lbVessel_Depart" runat="server" SkinId="lbtxt"></asp:Label></td>
                                           </tr>
                                           <tr>
                                             <td style="width:20%;" align="right"><asp:Label ID="Label87" runat="server" SkinId="lbtxt" Text="Third Party :"></asp:Label>&nbsp;</td>
                                             <td align="left"><asp:Label ID="lbThird" runat="server" SkinId="lbtxt"></asp:Label></td>
                                           </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                   <td colspan="2" align="center" >
                                       <asp:Literal ID="LiProduct" runat="server"></asp:Literal>
                                   </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <table width="100%" border="0" cellpadding="2" cellspacing="0">
                                           <tr>
                                             <td style="width:20%;" align="right"><asp:Label ID="Label44" runat="server" SkinId="lbtxt" Text="Quality :"></asp:Label>&nbsp;</td>
                                             <td align="right"  style="width:25%;"><asp:Label ID="Label52" runat="server" SkinId="lbtxt" Text="Base on Q.C. certificate"></asp:Label></td>
                                             <td align="left">&nbsp;</td>
                                           </tr>
                                           <tr>
                                             <td style="width:20%;" align="right"><asp:Label ID="Label79" runat="server" SkinId="lbtxt" Text="Timing :"></asp:Label>&nbsp;</td>
                                             <td align="right"  style="width:25%;"><asp:Label ID="Label82" runat="server" SkinId="lbtxt" Text="STD Time :"></asp:Label>&nbsp;</td>
                                             <td align="left"><asp:Label ID="lbSTD" runat="server" SkinId="lbtxt"></asp:Label>&nbsp;<asp:Label ID="Label86" runat="server" SkinId="lbtxt" Text="Hrs."></asp:Label></td>
                                           </tr>
                                           <tr>
                                             <td style="width:20%;" align="right">&nbsp;</td>
                                             <td align="right"  style="width:25%;"><asp:Label ID="Label88" runat="server" SkinId="lbtxt" Text="Actual Loading :"></asp:Label>&nbsp;</td>
                                             <td align="left"><asp:Label ID="lbActual" runat="server" SkinId="lbtxt"></asp:Label>&nbsp;<asp:Label ID="Label90" runat="server" SkinId="lbtxt" Text="Hrs."></asp:Label></td>
                                           </tr>
                                           <tr>
                                             <td style="width:20%;" align="right">&nbsp;</td>
                                             <td align="right"  style="width:25%;"><asp:Label ID="Label84" runat="server" SkinId="lbtxt" Text="Less/(More) STD Time :"></asp:Label>&nbsp;</td>
                                             <td align="left"><asp:Label ID="lbLess" runat="server" SkinId="lbtxt"></asp:Label>&nbsp;<asp:Label ID="Label91" runat="server" SkinId="lbtxt" Text="Hrs."></asp:Label></td>
                                           </tr>
                                        </table>
                                        
                                    </td>
                                </tr>
                                <tr> <td colspan="2" style="height: 5px;"><img src="../Image/space.gif" /> </td> </tr>
                                <tr>
                                  <td colspan="2">
                                      <table width="100%" border="0" cellpadding="2" cellspacing="0">
                                         <tr>
                                             <td colspan="3">
                                                 <asp:Label ID="Label89" runat="server" SkinId="lbtxt" Text="Finding Summary of our services carried out as following reports :"></asp:Label>&nbsp;
                                             </td>
                                         </tr>
                                         <tr>
                                             <td align="left" style="width:75%"><asp:Label ID="Label92" runat="server" SkinId="lbtxt" Text="Report attached"></asp:Label>&nbsp;</td>
                                             <td align="center" style="width:50px;" ><asp:Label ID="Label93" runat="server" SkinId="lbtxt" Text="Page"></asp:Label>&nbsp;</td>
                                             <td>&nbsp;</td>
                                         </tr>
                                         <tr>
                                             <td align="left" style="width:75%"><asp:Label ID="Label94" runat="server" SkinId="lbtxt" Text="1. Time Sheet. :"></asp:Label>&nbsp;</td>
                                             <td align="center" style="width:50px;" ><asp:TextBox ID="txtTimeSheet" runat="server" Width="95%" ></asp:TextBox></td>
                                             <td>&nbsp;</td>
                                         </tr>
                                         <tr>
                                             <td align="left" style="width:75%"><asp:Label ID="Label95" runat="server" SkinId="lbtxt" Text="2. Ullage report.(Before) :"></asp:Label>&nbsp;</td>
                                             <td align="center" style="width:50px;"><asp:TextBox ID="txtUllageBefore" runat="server" Width="95%" ></asp:TextBox></td>
                                             <td>&nbsp;</td>
                                         </tr>
                                         <tr>
                                             <td align="left" style="width:75%"><asp:Label ID="Label96" runat="server" SkinId="lbtxt" Text="3. Ullage report.(After) :"></asp:Label>&nbsp;</td>
                                             <td align="center" style="width:50px;"><asp:TextBox ID="txtUllageAfter" runat="server" Width="95%" ></asp:TextBox></td>
                                             <td>&nbsp;</td>
                                         </tr>
                                         <tr>
                                             <td align="left" style="width:75%"><asp:Label ID="Label97" runat="server" SkinId="lbtxt" Text="4. Cargo Tank inspection. :"></asp:Label>&nbsp;</td>
                                             <td align="center" style="width:50px;"><asp:TextBox ID="txtCargotank" runat="server" Width="95%" ></asp:TextBox></td>
                                             <td>&nbsp;</td>
                                         </tr>
                                         <tr>
                                             <td align="left" style="width:75%"><asp:Label ID="Label98" runat="server" SkinId="lbtxt" Text="5. Cargo Seal Report. :"></asp:Label>&nbsp;</td>
                                             <td align="center" style="width:50px;"><asp:TextBox ID="txtCargoSeal" runat="server" Width="95%" ></asp:TextBox></td>
                                             <td>&nbsp;</td>
                                         </tr>
                                         <tr>
                                             <td align="left" style="width:75%"><asp:Label ID="Label99" runat="server" SkinId="lbtxt" Text="6. Letter of Protest. :"></asp:Label>&nbsp;</td>
                                             <td align="center" style="width:50px;"><asp:TextBox ID="txtLetter" runat="server" Width="95%" ></asp:TextBox></td>
                                             <td>&nbsp;</td>
                                         </tr>
                                         <tr>
                                             <td align="left" style="width:75%"><asp:Label ID="Label100" runat="server" SkinId="lbtxt" Text="7. Notice of shore Loading/Unloading. :"></asp:Label>&nbsp;</td>
                                             <td align="center" style="width:50px;"><asp:TextBox ID="txtNotice" runat="server" Width="95%" ></asp:TextBox></td>
                                             <td>&nbsp;</td>
                                         </tr>
                                         <tr>
                                             <td align="left" style="width:75%"><asp:Label ID="Label101" runat="server" SkinId="lbtxt" Text="8. Bringht & Clear Sample record :"></asp:Label>&nbsp;</td>
                                             <td align="center" style="width:50px;"><asp:TextBox ID="txtBringht" runat="server" Width="95%" ></asp:TextBox></td>
                                             <td>&nbsp;</td>
                                         </tr>
                                         <tr>
                                             <td align="left" style="width:75%"><asp:Label ID="Label102" runat="server" SkinId="lbtxt" Text="9. Certificate product of vessel's tank. :"></asp:Label>&nbsp;</td>
                                             <td align="center" style="width:50px;"><asp:TextBox ID="txtCer" runat="server" Width="95%" ></asp:TextBox></td>
                                             <td>&nbsp;</td>
                                         </tr>
                                         <tr>
                                             <td align="left" style="width:75%"><asp:Label ID="Label103" runat="server" SkinId="lbtxt" Text="10. Paper Controlling :"></asp:Label>&nbsp;</td>
                                             <td align="center" style="width:50px;"><asp:TextBox ID="txtPaper" runat="server" Width="95%" ></asp:TextBox></td>
                                             <td>&nbsp;</td>
                                         </tr>
                                         <tr>
                                             <td align="left" style="width:75%"><asp:Label ID="Label104" runat="server" SkinId="lbtxt" Text="11. Local lap analysis report. :"></asp:Label>&nbsp;</td>
                                             <td align="center" style="width:50px;"><asp:TextBox ID="txtlocal" runat="server" Width="95%" ></asp:TextBox></td>
                                             <td>&nbsp;</td>
                                         </tr>
                                         <tr>
                                             <td align="left" style="width:75%"><asp:Label ID="Label105" runat="server" SkinId="lbtxt" Text="12. SSSC & Terminal safety regulation. :"></asp:Label>&nbsp;</td>
                                             <td align="center" style="width:50px;"><asp:TextBox ID="txtSSSC" runat="server" Width="95%" ></asp:TextBox></td>
                                             <td>&nbsp;</td>
                                         </tr>
                                         <tr>
                                             <td align="left" style="width:75%"><asp:Label ID="Label106" runat="server" SkinId="lbtxt" Text="13. Enclosed space entry permit. :"></asp:Label>&nbsp;</td>
                                             <td align="center" style="width:50px;"><asp:TextBox ID="txtEnclosed" runat="server" Width="95%" ></asp:TextBox></td>
                                             <td>&nbsp;</td>
                                         </tr>
                                         <tr>
                                             <td align="left" style="width:75%"><asp:Label ID="Label107" runat="server" SkinId="lbtxt" Text="14. Bunker Servey Report :"></asp:Label>&nbsp;</td>
                                             <td align="center"style="width:50px;" ><asp:TextBox ID="txtBunkerServey" runat="server" Width="95%" ></asp:TextBox></td>
                                             <td>&nbsp;</td>
                                         </tr>
                                         <tr>
                                             <td align="left" style="width:75%"><asp:Label ID="Label108" runat="server" SkinId="lbtxt" Text="15. Dye Plan. :"></asp:Label>&nbsp;</td>
                                             <td align="center" style="width:50px;"><asp:TextBox ID="txtDye" runat="server" Width="95%" ></asp:TextBox></td>
                                             <td>&nbsp;</td>
                                         </tr>
                                         <tr>
                                             <td align="left" style="width:75%"><asp:Label ID="Label109" runat="server" SkinId="lbtxt" Text="16. Certificate of Quality. :"></asp:Label>&nbsp;</td>
                                             <td align="center" style="width:50px;"><asp:TextBox ID="txtQuality" runat="server" Width="95%" ></asp:TextBox></td>
                                             <td>&nbsp;</td>
                                         </tr>
                                         <tr>
                                             <td align="left" style="width:75%"><asp:Label ID="Label110" runat="server" SkinId="lbtxt" Text="17. NOR. :"></asp:Label>&nbsp;</td>
                                             <td align="center" style="width:50px;"><asp:TextBox ID="txtNOR" runat="server" Width="95%" ></asp:TextBox></td>
                                             <td>&nbsp;</td>
                                         </tr>
                                         <tr>
                                             <td align="left" style="width:75%"><asp:Label ID="Label111" runat="server" SkinId="lbtxt" Text="18. Other Document.(Check Sheet). :"></asp:Label>&nbsp;</td>
                                             <td align="center" style="width:50px;"><asp:TextBox ID="txtOther" runat="server" Width="95%" ></asp:TextBox></td>
                                             <td>&nbsp;</td>
                                         </tr>
                                         <tr>
                                             <td align="left" style="width:75%"><asp:Label ID="Label112" runat="server" SkinId="lbtxt" Text="19. Disposal Certificate :"></asp:Label>&nbsp;</td>
                                             <td align="center" style="width:50px;"><asp:TextBox ID="txtDisposalCer" runat="server" Width="95%" ></asp:TextBox></td>
                                             <td>&nbsp;</td>
                                         </tr>
                                          <tr>
                                             <td align="left" style="width:75%"><asp:TextBox ID="txtT1" runat="server" Width="80%"></asp:TextBox>&nbsp;</td>
                                             <td align="center" style="width:50px;"><asp:TextBox ID="txtV1" runat="server" Width="95%" ></asp:TextBox></td>
                                             <td>&nbsp;</td>
                                         </tr>
                                         <tr>
                                             <td align="left" style="width:75%"><asp:TextBox ID="txtT2" runat="server" Width="80%"></asp:TextBox>&nbsp;</td>
                                             <td align="center" style="width:50px;"><asp:TextBox ID="txtV2" runat="server" Width="95%" ></asp:TextBox></td>
                                             <td>&nbsp;</td>
                                         </tr>
                                         <tr>
                                             <td align="left" style="width:75%"><asp:TextBox ID="txtT3" runat="server" Width="80%"></asp:TextBox>&nbsp;</td>
                                             <td align="center" style="width:50px;"><asp:TextBox ID="txtV3" runat="server" Width="95%" ></asp:TextBox></td>
                                             <td>&nbsp;</td>
                                         </tr>
                                         <tr>
                                             <td align="center" colspan="2"><asp:Button ID="btnPrintService" runat="server" CssClass="ButtonStyle" Text="Print" />
                                                                                     <asp:Button ID="btnCancelService" runat="server" CssClass="ButtonStyle" Text="Back" OnClick="btnCancel_Click" />
                                             </td>
                                             <td>&nbsp;</td>
                                         </tr>
                                      </table>
                                  </td>
                                </tr>
                      </table>
                     </ContentTemplate>
                            </asp:TabPanel>
                   </asp:TabContainer>         
                        </asp:Panel>
                    </td>
                </tr>
            </table>
           <asp:Button ID="btnPopupDelayTemp" runat="server" Text="Button" Style="display: none;" />
           <asp:Button ID="btnPopupTugTemp" runat="server" Text="Button" Style="display: none;" />
           <asp:Button ID="btnDelayLoad" runat="server" Text="Button" style="display:none;" />
           <asp:Button ID="btnTugLoad" runat="server" Text="Button" style="display:none;" />
            <asp:Button ID="BtnTrigger" runat="server" Style="display:none" />
            <asp:Button ID="btnRejectOK" runat="server" style="display:none;" />
     <asp:Button ID="btnTempCancel" runat="server" Text="Button" Style="display: none;" />
           <asp:ModalPopupExtender ID="ModalPopupExtender4" runat="server" BackgroundCssClass="Background"
                TargetControlID="btnPopupDelayTemp" PopupControlID="PanelPopupDelay">
            </asp:ModalPopupExtender>
<%--            <asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server" BackgroundCssClass="Background"
                TargetControlID="btnPopupTugTemp" PopupControlID="PanelPopupTug">
            </asp:ModalPopupExtender>--%>
            <asp:ModalPopupExtender ID="ModalPopupExtender3" BehaviorID="ModalPopupExtender3" runat="server" 
                                    OkControlID="ctl00_contentplaceholder1_ConfirmDelete_btnOk" 
                                    OnOkScript="okClick();" 
                                    CancelControlID="ctl00_contentplaceholder1_ConfirmDelete_btnNo"     
                                    OnCancelScript="cancelClick();" 
                                     BackgroundCssClass="Background" DropShadow="false" 
                                      PopupControlID="PanelConfirm" TargetControlID="BtnTrigger" >
        </asp:ModalPopupExtender>
         <asp:Button ID="btnPopupDetail" runat="server" Text="Button" style="display:none;" />
             <asp:Button ID="btnReLoad" runat="server" Text="Button" style="display:none;" />
              <asp:ModalPopupExtender ID="ModalPopupExtender5" runat="server" BackgroundCssClass="Background"
                TargetControlID="btnPopupDetail" PopupControlID="PanelDetailPopup">
            </asp:ModalPopupExtender>
                        <asp:ModalPopupExtender ID="ModalPopupExtender7" runat="server" BackgroundCssClass="Background"
                TargetControlID="btnTempCancel" PopupControlID="PanelCancel">
            </asp:ModalPopupExtender>
                <asp:Panel ID="PanelCancel" runat="server" Style="display: none;">
                <table>
                    <tr>
                        <td>
                            <iframe runat="server" id="CancelPopup" marginheight="0px" class="Style-Iframe" marginwidth="0px"></iframe>
                        </td>
                    </tr>
                </table>
            </asp:Panel>
               <asp:Panel ID="PanelDetailPopup" runat="server" Style="display: none;">
                <table>
                    <tr>
                        <td>
                            <iframe runat="server" id="IframeDetailPopup" marginheight="0px" class="Style-Iframe" marginwidth="0px"></iframe>
                        </td>
                    </tr>
                </table>
            </asp:Panel>
<%--            <asp:Panel ID="PanelPopupTug" runat="server" Style="display: none;">
                <table>
                    <tr>
                        <td>
                            <iframe runat="server" id="EditTug" marginheight="0px" class="Style-Iframe" marginwidth="0px"
                                src="../FormPopup/TugBeforeAndAfter.aspx"></iframe>
                        </td>
                    </tr>
                </table>
            </asp:Panel>--%>
            <asp:Panel ID="PanelPopupDelay" runat="server" Style="display: none;">
                <table>
                    <tr>
                        <td>
                            <iframe runat="server" id="EditDelay" marginheight="0px" class="Style-Iframe" marginwidth="0px"></iframe>
                        </td>
                    </tr>
                </table>
            </asp:Panel>
                    <asp:Panel ID="PanelConfirm" runat="server" style="display:none;">
       <Confirm:Confirm1 ID="ConfirmDelete" runat="server" ></Confirm:Confirm1>
    </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
